package com.feihong.txgw.view.ScrollUpAdvert;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ListView;

/**
 * @author wangziheng
 * @name txgw_app
 * @class name：com.feihong.txgw.view.ScrollUpAdvert
 * @class describe:
 * @time 2017/12/12 15:39
 * @change
 * @chang time
 * @class describe
 */
public class UnInterceptableListView extends ListView {
    public UnInterceptableListView(Context context) {
        super(context);
    }

    public UnInterceptableListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public UnInterceptableListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        getParent().requestDisallowInterceptTouchEvent(true);
        return super.onTouchEvent(ev);
    }
}
